

from api.login_api import IHRMLoginAPI


class TokenUtil:
    @classmethod
    def get_token(cls):
        body={"mobile": "13800000002","password": "123456"}
        resp=IHRMLoginAPI.login_api(body)
        token = resp.json().get('data')
        print('token=',token)
        return token
if __name__ == '__main__':
    print(TokenUtil.get_token())
